﻿using System;
using System.Collections.Generic;
using Petra.Gis;
using Petra.Gis.Support;
//using Petra.Gis.Environment;

namespace testDocumentServices
{
  public class test1
  {


    public static void testDoc()
    {
      SystemEnvironmentPersistables ep = new SystemEnvironmentPersistables()
      {
        Settings = new GisSettings()
        {
          {"Version", "0.8 beta"}
        },
        Components = new CustomComponents()
        {
          {
            "GridDataDecoders",
              new CustomComponentSet()
              {
                {
                  "cit", new CustomComponent()
                    {
                      AssemblyFile = "D:\\My Documents\\C#.NET\\Petra.Gis\\ImagingServices\\Cit\\bin\\Release\\Petra.Gis.ImagingServices.Cit.dll",
                      AssemblyName = "Petra.Gis.ImagingServices.Cit",
                      ClassName = "CitBitmapDecoder"
                    }
                },
                {
                  "tiff", new CustomComponent()
                    { 
                      AssemblyFile = "D:\\My Documents\\C#.NET\\Petra.Gis\\ImagingServices\\Tiff\\bin\\Release\\Petra.Gis.Imaging.Tiff.dll",
                      AssemblyName = "Petra.Gis.Imaging.Tiff",
                      ClassName = "Decoder"
                    }  
                }
            }
          },
          {"ProjectionTransforms", null}
        },
        Libraries = new GisLibraries() 
        {
          SRSLibrary = new CoordinateSystemLibrary()
        }
      };


      //ep.Components["GridDataDecoders"]["cit"].CreateInstance(


      //);

    }


    






  }
}
